package com.abner.design.patterns.factory.factorymethod.order;


import com.abner.design.patterns.factory.factorymethod.pizza.LdCheesePizza;
import com.abner.design.patterns.factory.factorymethod.pizza.LdPepperPizza;
import com.abner.design.patterns.factory.factorymethod.pizza.Pizza;

/**
 * 伦敦披萨店
 * @Author: abner
 * @Date: 2022-04-25-20:03
 **/
public class LdOrderPizza extends OrderPizza {

	@Override
	Pizza makePizza(String orderType) {
		Pizza pizza = null;
		if("cheese".equals(orderType)) {
			pizza = new LdCheesePizza();
		} else if ("pepper".equals(orderType)) {
			pizza = new LdPepperPizza();
		}
		return pizza;
	}
}
